﻿<Application x:Class="PurchaseSales.Manage.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
             xmlns:loacl="clr-namespace:PurchaseSales.Manage"
             xmlns:Converters="clr-namespace:PurchaseSales.Manage.Common.Converters">
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary>
                    <loacl:AppBootstrapper x:Key="bootstrapper"/>
                </ResourceDictionary>
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colours.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Blue.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" />

                <!--<ResourceDictionary Source="pack://application:,,,/PurchaseSales.Manage;component/Resources/ButtonStyle.xaml"/>-->
                <ResourceDictionary>
                    <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
                    <Converters:BooleanToVisibilityReverseConverter x:Key="BooleanToVisibilityReverseConverter"/>
                    <Converters:NullToVisibilityConverter x:Key="NullToVisibilityConverter"/>

                    <Style x:Key="VerticalGridSplitterStyle" TargetType="{x:Type GridSplitter}">
                        <Setter Property="FrameworkElement.Width" Value="8" />
                        <Setter Property="VerticalContentAlignment" Value="Top" />
                        <Setter Property="Panel.Background" Value="Transparent" />
                        <Setter Property="UIElement.SnapsToDevicePixels" Value="True" />
                        <Setter Property="UIElement.Focusable" Value="False" />
                        <Setter Property="ResizeDirection" Value="Columns" />
                        <Setter Property="FrameworkElement.Cursor" Value="SizeWE" />
                        <Setter Property="Control.Template">
                            <Setter.Value>
                                <ControlTemplate>
                                    <Border Background="{TemplateBinding Panel.Background}" BorderBrush="{TemplateBinding Border.BorderBrush}" BorderThickness="{TemplateBinding Border.BorderThickness}">
                                        <Border HorizontalAlignment="Center" VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
                                            <Image Height="19" Width="4" Stretch="None">
                                                <Image.Source>
                                                    <DrawingImage>
                                                        <DrawingImage.Drawing>
                                                            <DrawingGroup>
                                                                <GeometryDrawing Brush="White">
                                                                    <GeometryDrawing.Geometry>
                                                                        <GeometryGroup>
                                                                            <RectangleGeometry Rect="0,0,1,17" />
                                                                            <RectangleGeometry Rect="2,0,1,17" />
                                                                        </GeometryGroup>
                                                                    </GeometryDrawing.Geometry>
                                                                </GeometryDrawing>
                                                                <GeometryDrawing Brush="DarkGray">
                                                                    <GeometryDrawing.Geometry>
                                                                        <GeometryGroup>
                                                                            <RectangleGeometry Rect="1,0,1,17" />
                                                                            <RectangleGeometry Rect="3,0,1,17" />
                                                                        </GeometryGroup>
                                                                    </GeometryDrawing.Geometry>
                                                                </GeometryDrawing>
                                                            </DrawingGroup>
                                                        </DrawingImage.Drawing>
                                                    </DrawingImage>
                                                </Image.Source>
                                            </Image>
                                        </Border>
                                    </Border>
                                </ControlTemplate>
                            </Setter.Value>
                        </Setter>
                    </Style>
                </ResourceDictionary>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>
</Application>
